package com.syzg.base.merge.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Organization implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	public static Short STATUS_VALID = Short.valueOf((short)1);
    public static Short STATUS_INVALID = Short.valueOf((short)0);
    public static Short STATUS_DISABLED = Short.valueOf((short)-1);
    private Long id;
    private String code;
    private String name;
    private Long parentId;
    private Byte isHasChild;
    private String description;
    private Short level;
    private Integer orderNo;
    private Short status;
    private Byte isRealOrg;
    private Short type;
    private Long manageOrgId;
    private String shortName;
    private Set<Staff> staffs;
	
	public Organization(){
        orderNo = new Integer(1);
        staffs = new HashSet<Staff>(0);
    }

    public Organization(String code, String name, Long parentId, Byte isHasChild, String description, Short level, Integer orderNo, 
            Short status, Byte isRealOrg, Short type, Long manageOrgId, String shortName, Set<Staff> staffs){
        this.orderNo = new Integer(1);
        this.staffs = new HashSet<Staff>(0);
        this.code = code;
        this.name = name;
        this.parentId = parentId;
        this.isHasChild = isHasChild;
        this.description = description;
        this.level = level;
        this.orderNo = orderNo;
        this.status = status;
        this.isRealOrg = isRealOrg;
        this.type = type;
        this.manageOrgId = manageOrgId;
        this.shortName = shortName;
        this.staffs = staffs;
    }

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public Long getParentId(){
        return parentId;
    }

    public void setParentId(Long parentId){
        this.parentId = parentId;
    }

    public Byte getIsHasChild(){
        return isHasChild;
    }

    public void setIsHasChild(Byte isHasChild){
        this.isHasChild = isHasChild;
    }

    public String getDescription(){
        return description;
    }

    public void setDescription(String description){
        this.description = description;
    }

    public Short getLevel(){
        return level;
    }

    public void setLevel(Short level){
        this.level = level;
    }

    public Integer getOrderNo(){
        return orderNo;
    }

    public void setOrderNo(Integer orderNo){
        this.orderNo = orderNo;
    }

    public Short getStatus(){
        return status;
    }

    public void setStatus(Short status){
        this.status = status;
    }

    public Byte getIsRealOrg(){
        return isRealOrg;
    }

    public void setIsRealOrg(Byte isRealOrg){
        this.isRealOrg = isRealOrg;
    }

    public Short getType(){
        return type;
    }

    public void setType(Short type){
        this.type = type;
    }

    public Long getManageOrgId(){
        return manageOrgId;
    }

    public void setManageOrgId(Long manageOrgId){
        this.manageOrgId = manageOrgId;
    }

    public String getShortName(){
        return shortName;
    }

    public void setShortName(String shortName){
        this.shortName = shortName;
    }

    public Set<Staff> getStaffs()
    {
        return staffs;
    }

    public void setStaffs(Set<Staff> staffs){
        this.staffs = staffs;
    }
}